#define  _CRT_SECURE_NO_WARNINGS   1
#include <iostream>
#include "process.h"
#include <Windows.h>
void Download(double size, double speed)
{
	double cur = 0.0;
	while (cur<= size)
	{
		Press(size,cur);
		cur += speed;
		Sleep(1);
	}
}
int main()
{
	std::cout << "Loading:\n";
	Download(1024.0, 0.8);
	std::cout << "Complete!\n";
	std::cout << "Loading:\n";
	Download(1024.0, 1.6);
	std::cout << "Complete!\n";
	/*std::cout << "Loading:\n";
	Download(1024.0, 2.0);
	std::cout << "Complete!\n";*/
	return 0;
}